<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="user">
<div class="setting_search tabs">
    <div class="btn-group-box">
        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addUser"><i class="add"></i>添加</button>
        <button type="button" class="btn btn-default border-blue" id="btnUserRm">删除</button>
    </div>
    <div class="group-box">
        <table class="table table-bordered table-striped table-condensed table-hover" style="table-layout: fixed;">
            <thead>
            <tr>
                <th width="5%" style="text-align: center;"><input type="checkbox" id="checkUserListAll"/></th>
                <th width="10%">登录账号</th>
                <th width="10%">姓名</th>
                <th width="20%">部门编号</th>
                <th width="20%">部门名称</th>
                <th width="10%">手机号</th>
                <th width="20%">邮箱</th>
                <th width="5%">状态</th>
            </tr>
            </thead>
            <tbody id="userListTable">
                <tr th:each="entity : ${userMap?.get('rows')}">
                    <td style="text-align: center;"><input class="id" type="checkbox" th:value="${entity.id}"/></td>
                    <td th:title="${entity.loginId}" th:text="${entity.loginId}"></td>
                    <td th:title="${entity.userName}" th:text="${entity.userName}"></td>
                    <td th:title="${entity.deptNumber}" th:text="${entity.deptNumber}"></td>
                    <td th:title="${entity.deptName}" th:text="${entity.deptName}"></td>
                    <td th:title="${entity.mobile}" th:text="${entity.mobile}"></td>
                    <td th:title="${entity.email}" th:text="${entity.email}"></td>
                    <td th:title="${entity.enabled == 0 ?'禁用':'启用'}" th:text="${entity.enabled == 0 ?'禁用':'启用'}"></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="page-msg">共<span th:text="${userMap.total}"></span>记录</div>
<input type="hidden" th:value="${userMap.total}" id="userTotal">
<ul class="pagination" id="userPagination"></ul>
</body>
</html>